package com.woniuxy.light_smart.service.imp;


import com.woniuxy.light_smart.entity.Role;
import com.woniuxy.light_smart.entity.UserRole;
import com.woniuxy.light_smart.mapper.RoleMapper;
import com.woniuxy.light_smart.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


import com.woniuxy.light_smart.entity.UserRole;
import com.woniuxy.light_smart.mapper.RoleMapper;
import com.woniuxy.light_smart.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<UserRole> selectAllRole() {
        return roleMapper.selectAllRole();
    }

    @Override
    public List<Role> selectAll() {
        return roleMapper.selectAll();
    }

    @Override
    public List<Integer> selectRidByUid(Long id) {
        return roleMapper.selectRidByUid(id);

    }

}